<!DOCTYPE html>
<html>
<head>
	<title>物资清单</title>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
	<link rel="stylesheet" href="../../css/bootstrap.min.css">
	<link rel="stylesheet" href="../../css/font-awesome.min.css">
	<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
	<link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
	<link rel="stylesheet" href="../../css/main.css">
	<script src="../../libs/jquery.min.js"></script>
	<script src="../../plugins/layer/layer.js"></script>
	<script src="../../libs/bootstrap.min.js"></script>
	<script src="../../libs/vue.min.js"></script>
	<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
	<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
	<script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
	<script src="../../js/common.js"></script>
</head>
<style type="text/css">

	.col-sm-2.control-label.prol {
		width: 90px;
		padding-top: 5px;
	}

	.col-sm-10.pror {
		width: 200px;
	}

</style>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">

			<div class="form-group">
				<div class="col-sm-2 control-label prol">物资名称</div>
				<div class="col-sm-10 pror">
					<!--<select class="form-control" v-model="cGoodsDetail.gDType"  placeholder="物资名称" id="projectIdquer" onchange="getProject()"  >
						<option value="">全部</option>
						&lt;!&ndash;<option v-for="d in mold_type" :value="d.key">{{d.value}}</option>&ndash;&gt;
					</select>-->

					<input type="text" class="form-control" v-model="gDName" placeholder="材料名称"/>

				</div>
			</div>

			<!--<div class="form-group">
				<div class="col-sm-2 control-label prol">到货日期</div>
				<div class="col-sm-10 pror">
					&lt;!&ndash;<select class="form-control" v-model="cGoodsDetail.gDBigtype"  placeholder="到货日期" id="projectIdquers" onchange="getProjects()"  >
						<option value="">全部</option>
						&lt;!&ndash;<option v-for="d in allBase" :value="d.guid">{{d.pBName}}</option>&ndash;&gt;
					</select>&ndash;&gt;

					<input type="date" class="form-control" v-model="time" placeholder="到货日期"/>

				</div>
			</div>-->


			<a class="btn btn-default quer" @click="reload">查询</a>
			<!--<a class="btn btn-primary xz" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
			<a class="btn btn-primary xg" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			<a class="btn btn-primary sc" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
		</div>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>

	<div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">所属到货记录id</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.aRGuid" placeholder="所属到货记录id"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">材料名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDName" placeholder="材料名称"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">类别(材料/设备)</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDType" placeholder="类别(材料/设备)"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">所属设备/材料</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.mDGuid" placeholder="所属设备/材料ID"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">到货数</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDNum" placeholder="到货数"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">供货商</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDBusine" placeholder="供货商"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">物质编码</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDCode" placeholder="物质编码"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">材料大类</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDBigtype" placeholder="材料大类"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">材料中类</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDMidtype" placeholder="材料中类"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">材料标签</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDLabel" placeholder="材料标签"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">主要技术参数</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDParameter" placeholder="主要技术参数"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">单位</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDUnit" placeholder="购置单位"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">购置总价</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDAllprice" placeholder="购置总价"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">购置单价</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDPrice" placeholder="购置单价"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">单重（kg）</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDWeight" placeholder="单重（kg）"/>
				</div>
			</div>
			<div class="form-group" hidden>
				<div class="col-sm-2 control-label">状态</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="cGoodsDetail.gDDatastate" placeholder="状态"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="../../js/modules/csg/cgoodsdetailNews.js"></script>
</body>
</html>